/*
 * ExponentialGenerator.cc
 *
 *  Created on: 2011-03-09
 *      Author: Jagger
 */

#include "ExponentialGenerator.h"

Define_Module(ExponentialGenerator)

void ExponentialGenerator::initialize()
{
	mean = par("mean");

	AbstractGenerator::initialize();
}

simtime_t ExponentialGenerator::getNextPacketArrivalTime(simtime_t lastPacketArrival)
{
	return lastPacketArrival + exponential(mean);
}
